import reqGlobal from '../reqGlobal';

export function userPageReq(queryParamObj) {
    return reqGlobal.get('/lte/user/page',{params: queryParamObj});
}

// addRelRoleIds
export function addRelRoleIds(param){
    return reqGlobal.get('/lte/user/addRelRoleIds',{params:param});
}


export function saveOne(postData){
    return reqGlobal.post('/lte/user/saveOne',postData);
}

// 修改用户name和sex
// localhost:8081/lte/user/updateNameAndSexById?name=王不二&sex=0&id=11
export function updateUserById(name,sex,id){
    let url= '/lte/user/updateNameAndSexById?'+'name='+name+'&sex='+sex+'&id='+id;
    return reqGlobal.put(url);
}

export function delByIds(ids){
    let url='/lte/user/delByIds?ids='+ids;
    return reqGlobal.delete(url);
}
